package com.uto;

import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;

import com.uto.backend.interfaces.IAppManager;

public class MyServiceConnection implements ServiceConnection{
	
	private static IAppManager appManager;
	
	public void onServiceConnected(ComponentName name, IBinder service) {
		appManager = IAppManager.Stub.asInterface(service);

	}

	public void onServiceDisconnected(ComponentName name) {
		appManager = null;

	}
	
	public static IAppManager getAppManager(){
		return appManager;
	}

}
